Deferred Update Protocols for Multi-Site Transactions
نویسندگان
چکیده
Several commercial distributed database systems provide an optional protocol that defers updates of replicas in order to attain higher transaction throughput. Each replicated data item is assigned a primary copy site, and has a set of sites with secondary copies. Typically, in a deferred update protocol, a transaction directly updates only the primary copy of each data item it modiies. After the transaction commits, the updates to primary copies by that transaction are sent transactionally to other sites containing secondary copies of these data items. Thus, the protocol allows the values of the primary and secondary copies of a data item to diier until the secondary copies are updated. In an earlier paper, we investigated the deferred update approach for transactions that operate at only one site and then commit (with updates to secondary copies propagated after commitment). There, we showed that the serializability of transactions can be guaranteed if and only if the replication topology of the system is either a tree or a forest. In this paper, we discuss global transactions that operate at multiple sites in a system utilizing the deferred update approach. In such a system, a global transaction that updates replicated data items can use the underlying deferred update mechanism to ensure replica consistency. Such a transaction may commit after updating primary copies. The deferred update mechanism forwards the updates to sites containing secondary copies as usual. However, it is not clear if global serializability is ensured. We present two protocols to execute global transactions in a replicated database systems with a deferred update mechanism. The rst protocol is applicable to systems whose replication topology is a tree. The second protocol is more general, and is applicable to systems whose replication topology is a forest. The protocols preserve the execution autonomy of the local sites and the underlying deferred update mechanism. They impose minimal overhead on transactions that operate at only one site. We show that both protocols ensure global serializability. We also propose a method for tolerating site failures.
منابع مشابه
A Formal Analysis of the Deferred Update Technique
Introduction. In the deferred update technique for database replication, a number of database replicas are used to implement a single serializable database interface. Its main idea consists in executing all operations of a transaction initially on a single database replica. Transactions that do not change the database state can commit locally to the replica they executed, but other transactions...
متن کاملHybrid Transactional Replication: State-Machine and Deferred-Update Replication Combined
We propose Hybrid Transactional Replication (HTR) a novel replication scheme for highly dependable services. It combines two schemes: a transaction is executed either optimistically by only one service replica in the deferred update mode (DU), or deterministically by all replicas in the state machine mode (SM); the choice is made by an oracle. The DU mode allows for parallelism and thus takes a...
متن کاملRelaxing Correctness Criteria in Database Replication With SI Replicas
The concept of Generalized Snapshot Isolation (GSI) has been recently proposed as a suitable extension of conventional Snapshot Isolation (SI) for replicated databases. In GSI, transactions may use older snapshots instead of the latest snapshot required in SI, being able to provide better performance without significantly increasing the abortion rate when write/write conflicts among transaction...
متن کاملUpdate propagation strategies to improve data freshness in lazy master scheme
Many distributed database applications need to replicate data to improve data availability and query response time. The two-phase-commit protocol guarantees mutual consistency of replicated data but does not provide good performance. Lazy replication has been used as an alternative solution in several types of applications on-line nancial transactions and telecommunication systems. In this case...
متن کاملComparing Optimistic Database Replication Techniques
Replication is attractive for scaling databases up, as it does not require costly equipment and it enables fault tolerance. However, as the latency gap between local and remote accesses continues to widen, maintaining consistency between replicas remains a performance and complexity bottleneck. Optimistic replication (OR) addresses these problems. In OR, a database tentatively executes transact...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1996